package desensitization.entity;

import com.caigou.desensitization.annotation.SensitiveField;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 用户信息表
 */
@Getter
@Setter
@Accessors(chain = true)
@AllArgsConstructor
public class User implements Serializable {
	private static final long    serialVersionUID = 1L;
	/**
	 主键
	 */
	private              Integer id;
	/**
	 年龄
	 */
	private              Integer age;
	/**
	 姓名
	 */
	@SensitiveField(value = "AAA", fillValue = "A")
	private              String  name;
	/**
	 邮箱
	 */
	@SensitiveField("EMAIL")
	private              String  email;
	/**
	 手机号
	 */
	@SensitiveField("MOBILE")
	private              String  mobile;
	/**
	 地址
	 */
	@SensitiveField("ADDRESS")
	private              String  address;
}
